<?php


namespace app\voip\controller;


use app\voip\func\ExcelListFunc;
use vae\controller\AdminCheckAuth;

class ExcelListController extends AdminCheckAuth
{
    public function myList()
    {

        return view();
    }
    public function ajaxMyExcel()
    {
        if (!request()->isAjax()){return view('my_list');}
        $where = array();
        $param = vae_get_param();

        if(!empty($param['keywords'])) {
            $where['id|title'] = ['like', '%' . $param['keywords'] . '%'];
        }
        $rows = empty($param['limit']) ? \think\Config::get('paginate.list_rows') : $param['limit'];

        $where['uid']=vae_get_login_admin('id');

        return vae_assign_table(0,'',ExcelListFunc::findMy($where,$rows,$param));

    }


}